# def new_fun(fun):
#     def wrapper():
#         print("身份验证")
#         fun()
#     return wrapper
#
# @new_fun
# def old_fun():
#     print("旧功能")
#
# old_fun()

def new_fun(fun):
    def wrapper(*args,**kwargs):
        print("身份验证")
        a = fun(*args,**kwargs)
        return a
    return wrapper


@new_fun
def old_fun(m,n,k):
    print(f"旧功能{m,n,k}")

old_fun(4,5,6)


@new_fun
def fun2(m,n,k):
    return m,n,k
print(fun2(1,2,3))
